home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscDoc.mbox / No_subject.attach / index.rtf
Text File  |  1994-02-11  |  2KB  |  47 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;}
  2. \margl120
  3. \margr120
  4. {\colortbl;\red0\green0\blue0;}
  5. \pard\tx480\tx960\tx1440\tx1920\tx2400\tx2880\tx3360\tx3840\tx4320\tx4800\f0\b0\i0\ulnone\fs24\fc0\cf0 Hi,\
  6. \
  7. I have made some changes to the doc classes.  The main changes are:\
  8. \
  9. - I replaced MODocController's open and save type class variables with a single class variable called docTypes.  This stores a list of MODocType objects.  The objects store the type tag, name, extension, open selector, and save selector.  The two selectors stored with this objects basically replace the doSave and doRevert methods.  When the document must save or revert, it knows what type it is and sends the appropriate message to itself.  The selectors are expected to take a single MODocType * argument.  You can, as subclasser, write separate methods to read and write each type or you can write two methods (one for read and one for write) that looks at the MODocType argument and does the right thing.\
  10. \
  11. - The saveAccessory nib and the method to fill the menu have been moved to MODocController.  Subclasses could now override getSaveAccessoryForSaveTypes:currentType: to use a different nib if they need more controls.\
  12. \
  13. - DocControllers keep track of the current type of the document.  They then can pass this info on to the save and open selectors.\
  14. \
  15. - Changed the two example controllers to do the right thing.  Also changed the DocManager to do the right things\
  16. \
  17. - Added support for no-extension doc types (ala edit text).  The TextDocController example allows no-extension files.\
  18. \
  19. Well, here it is.\
  20. \
  21. As before, please don't distribute this.\
  22. \
  23.    
  24. {{\attachment1431 ControllerTest
  25. }
  26. \pard\tx480\tx960\tx1440\tx1920\tx2400\tx2880\tx3360\tx3840\tx4320\tx4800\f0\b0\i0\ulnone\fs24\fc0\cf0 \
  27. ControllerTest\
  28. \
  29. Again, let me know what you think.  Basically the changes deal with a few things that were in the issues file.  The rest of the stuff in there will probably not get dealt with for the first release.\
  30. \
  31.  
  32. \pard\tx3240\tx4800\fc1\cf1 ____________________________________________________________\
  33. Mike Ferris    
  34. \i All statements are true in some
  35. \i0 \
  36. mike@lorax.com    
  37. \i sense, false in some sense,
  38. \i0 \
  39. Paradigm Software    
  40. \i and meaningless in some sense.
  41. \i0 \
  42. (510) 652-2039    
  43. \i Including this one.
  44. \i0 \
  45.  
  46. }
  47.